<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:forgeview="http://jboss.org/forge/view"	
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{userBean.id}"/>
		<f:event type="preRenderView" listener="#{userBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Create User"/>

	<ui:define name="header">
		User
	</ui:define>

	<ui:define name="subheader">
		<c:choose>
			<c:when test="#{!empty userBean.id}">
				Edit existing User
			</c:when>
			<c:otherwise>
				Create a new User
			</c:otherwise>
		</c:choose>
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="create">
			<h:messages globalOnly="true" styleClass="error"/>

			<h:panelGrid columnClasses="label,component,required" columns="3">
				<h:outputLabel for="userBeanUserName" value="Name:"/>
				<h:panelGroup>
					<h:inputText id="userBeanUserName" maxLength="65535" required="true" value="#{userBean.user.name}"/>
					<h:message for="userBeanUserName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="userBeanUserFamilName" value="Famil Name:"/>
				<h:panelGroup>
					<h:inputText id="userBeanUserFamilName" maxLength="65535" value="#{userBean.user.familName}"/>
					<h:message for="userBeanUserFamilName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="userBeanUserUserName" value="User Name:"/>
				<h:panelGroup>
					<h:inputText id="userBeanUserUserName" maxLength="65535" required="true" value="#{userBean.user.userName}"/>
					<h:message for="userBeanUserUserName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="userBeanUserPassword" value="Password:"/>
				<h:panelGroup>
					<h:inputText id="userBeanUserPassword" maxLength="65535" required="true" value="#{userBean.user.password}"/>
					<h:message for="userBeanUserPassword" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="userBeanUserHint" value="Hint:"/>
				<h:panelGroup>
					<h:inputText id="userBeanUserHint" maxLength="65535" value="#{userBean.user.hint}"/>
					<h:message for="userBeanUserHint" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="userBeanUserCreatedBy" value="Created By:"/>
				<h:panelGroup>
					<h:inputText id="userBeanUserCreatedBy" maxLength="65535" value="#{userBean.user.createdBy}"/>
					<h:message for="userBeanUserCreatedBy" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="userBeanUserCreatedOn" value="Created On:"/>
				<h:panelGroup>
					<h:inputText id="userBeanUserCreatedOn" maxLength="10" value="#{userBean.user.createdOn}">
						<f:convertDateTime type="date"/>
					</h:inputText>
					<h:message for="userBeanUserCreatedOn" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="userBeanUserLocation" value="Location:"/>
				<h:panelGroup>
					<h:inputText id="userBeanUserLocation" maxLength="65535" value="#{userBean.user.location}"/>
					<h:message for="userBeanUserLocation" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="userBeanUserTableId" value="Table Id:"/>
				<h:panelGroup>
					<h:inputText id="userBeanUserTableId" required="true" value="#{userBean.user.tableId}"/>
					<h:message for="userBeanUserTableId" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="userBeanUserAddresses" value="Addresses:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{userBean.user.addresses}"/>
					<h:dataTable id="userBeanUserAddresses" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Table Id"/>
							</f:facet>
							<h:link outcome="/address/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemTableId" value="#{_item.tableId}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="addressBeanAddTableId" value="#{addressBean.add.tableId}"/>
								<h:message for="addressBeanAddTableId" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(addressBean.added)}" id="userBeanUserAddressesAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{addressBean.add.user}" value="#{userBean.user}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="userBeanUserPhoneNos" value="Phone Nos:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{userBean.user.phoneNos}"/>
					<h:dataTable id="userBeanUserPhoneNos" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Phone No"/>
							</f:facet>
							<h:link outcome="/phoneNo/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemPhoneNo" value="#{_item.phoneNo}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="phoneNoBeanAddPhoneNo" value="#{phoneNoBean.add.phoneNo}"/>
								<h:message for="phoneNoBeanAddPhoneNo" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(phoneNoBean.added)}" id="userBeanUserPhoneNosAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{phoneNoBean.add.user}" value="#{userBean.user}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="userBeanUserAddresses1" value="Addresses_1:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{userBean.user.addresses_1}"/>
					<h:dataTable id="userBeanUserAddresses1" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Table Id"/>
							</f:facet>
							<h:link outcome="/address/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemTableId" value="#{_item.tableId}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="addressBeanAddTableId" value="#{addressBean.add.tableId}"/>
								<h:message for="addressBeanAddTableId" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(addressBean.added)}" id="userBeanUserAddresses1Add" styleClass="add-button">
									<f:setPropertyActionListener target="#{addressBean.add.user}" value="#{userBean.user}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="userBeanUserCustomersForModifiedBy" value="Customers For Modified By:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{userBean.user.customersForModifiedBy}"/>
					<h:dataTable id="userBeanUserCustomersForModifiedBy" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Name"/>
							</f:facet>
							<h:link outcome="/customer/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemName" value="#{_item.name}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="customerBeanAddName" maxLength="65535" value="#{customerBean.add.name}"/>
								<h:message for="customerBeanAddName" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Table Id"/>
							</f:facet>
							<h:link outcome="/customer/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemTableId" value="#{_item.tableId}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="customerBeanAddTableId" value="#{customerBean.add.tableId}"/>
								<h:message for="customerBeanAddTableId" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(customerBean.added)}" id="userBeanUserCustomersForModifiedByAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{customerBean.add.userByModifiedBy}" value="#{userBean.user}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="userBeanUserStocksForModifiedBy" value="Stocks For Modified By:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{userBean.user.stocksForModifiedBy}"/>
					<h:dataTable id="userBeanUserStocksForModifiedBy" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Table Id"/>
							</f:facet>
							<h:link outcome="/stock/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemTableId" value="#{_item.tableId}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="stockBeanAddTableId" value="#{stockBean.add.tableId}"/>
								<h:message for="stockBeanAddTableId" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(stockBean.added)}" id="userBeanUserStocksForModifiedByAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{stockBean.add.userByModifiedBy}" value="#{userBean.user}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="userBeanUserStocksForModifiedBy1" value="Stocks For Modified By_1:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{userBean.user.stocksForModifiedBy_1}"/>
					<h:dataTable id="userBeanUserStocksForModifiedBy1" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Table Id"/>
							</f:facet>
							<h:link outcome="/stock/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemTableId" value="#{_item.tableId}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="stockBeanAddTableId" value="#{stockBean.add.tableId}"/>
								<h:message for="stockBeanAddTableId" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(stockBean.added)}" id="userBeanUserStocksForModifiedBy1Add" styleClass="add-button">
									<f:setPropertyActionListener target="#{stockBean.add.userByModifiedBy}" value="#{userBean.user}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="userBeanUserStocksForCreatedBy" value="Stocks For Created By:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{userBean.user.stocksForCreatedBy}"/>
					<h:dataTable id="userBeanUserStocksForCreatedBy" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Table Id"/>
							</f:facet>
							<h:link outcome="/stock/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemTableId" value="#{_item.tableId}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="stockBeanAddTableId" value="#{stockBean.add.tableId}"/>
								<h:message for="stockBeanAddTableId" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(stockBean.added)}" id="userBeanUserStocksForCreatedByAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{stockBean.add.userByCreatedBy}" value="#{userBean.user}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="userBeanUserCustomersForCreatedby" value="Customers For Createdby:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{userBean.user.customersForCreatedby}"/>
					<h:dataTable id="userBeanUserCustomersForCreatedby" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Name"/>
							</f:facet>
							<h:link outcome="/customer/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemName" value="#{_item.name}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="customerBeanAddName" maxLength="65535" value="#{customerBean.add.name}"/>
								<h:message for="customerBeanAddName" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Table Id"/>
							</f:facet>
							<h:link outcome="/customer/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemTableId" value="#{_item.tableId}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="customerBeanAddTableId" value="#{customerBean.add.tableId}"/>
								<h:message for="customerBeanAddTableId" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(customerBean.added)}" id="userBeanUserCustomersForCreatedbyAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{customerBean.add.userByCreatedby}" value="#{userBean.user}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="userBeanUserCustomersForCreatedby1" value="Customers For Createdby_1:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{userBean.user.customersForCreatedby_1}"/>
					<h:dataTable id="userBeanUserCustomersForCreatedby1" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Name"/>
							</f:facet>
							<h:link outcome="/customer/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemName" value="#{_item.name}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="customerBeanAddName" maxLength="65535" value="#{customerBean.add.name}"/>
								<h:message for="customerBeanAddName" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Table Id"/>
							</f:facet>
							<h:link outcome="/customer/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemTableId" value="#{_item.tableId}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="customerBeanAddTableId" value="#{customerBean.add.tableId}"/>
								<h:message for="customerBeanAddTableId" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(customerBean.added)}" id="userBeanUserCustomersForCreatedby1Add" styleClass="add-button">
									<f:setPropertyActionListener target="#{customerBean.add.userByCreatedby}" value="#{userBean.user}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="userBeanUserCustomersForModifiedBy1" value="Customers For Modified By_1:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{userBean.user.customersForModifiedBy_1}"/>
					<h:dataTable id="userBeanUserCustomersForModifiedBy1" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Name"/>
							</f:facet>
							<h:link outcome="/customer/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemName" value="#{_item.name}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="customerBeanAddName" maxLength="65535" value="#{customerBean.add.name}"/>
								<h:message for="customerBeanAddName" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Table Id"/>
							</f:facet>
							<h:link outcome="/customer/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemTableId" value="#{_item.tableId}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="customerBeanAddTableId" value="#{customerBean.add.tableId}"/>
								<h:message for="customerBeanAddTableId" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(customerBean.added)}" id="userBeanUserCustomersForModifiedBy1Add" styleClass="add-button">
									<f:setPropertyActionListener target="#{customerBean.add.userByModifiedBy}" value="#{userBean.user}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="userBeanUserBanksForCreatedBy" value="Banks For Created By:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{userBean.user.banksForCreatedBy}"/>
					<h:dataTable id="userBeanUserBanksForCreatedBy" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Name"/>
							</f:facet>
							<h:link outcome="/bank/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemName" value="#{_item.name}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="bankBeanAddName" maxLength="65535" value="#{bankBean.add.name}"/>
								<h:message for="bankBeanAddName" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Account Number"/>
							</f:facet>
							<h:link outcome="/bank/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemAccountNumber" value="#{_item.accountNumber}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="bankBeanAddAccountNumber" value="#{bankBean.add.accountNumber}"/>
								<h:message for="bankBeanAddAccountNumber" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Branch"/>
							</f:facet>
							<h:link outcome="/bank/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemBranch" value="#{_item.branch}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="bankBeanAddBranch" maxLength="65535" value="#{bankBean.add.branch}"/>
								<h:message for="bankBeanAddBranch" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Beneficiary Name"/>
							</f:facet>
							<h:link outcome="/bank/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemBeneficiaryName" value="#{_item.beneficiaryName}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="bankBeanAddBeneficiaryName" maxLength="65535" value="#{bankBean.add.beneficiaryName}"/>
								<h:message for="bankBeanAddBeneficiaryName" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Table Id"/>
							</f:facet>
							<h:link outcome="/bank/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemTableId" value="#{_item.tableId}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="bankBeanAddTableId" value="#{bankBean.add.tableId}"/>
								<h:message for="bankBeanAddTableId" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(bankBean.added)}" id="userBeanUserBanksForCreatedByAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{bankBean.add.userByCreatedBy}" value="#{userBean.user}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="userBeanUserPhoneNos1" value="Phone Nos_1:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{userBean.user.phoneNos_1}"/>
					<h:dataTable id="userBeanUserPhoneNos1" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Phone No"/>
							</f:facet>
							<h:link outcome="/phoneNo/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemPhoneNo" value="#{_item.phoneNo}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="phoneNoBeanAddPhoneNo" value="#{phoneNoBean.add.phoneNo}"/>
								<h:message for="phoneNoBeanAddPhoneNo" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(phoneNoBean.added)}" id="userBeanUserPhoneNos1Add" styleClass="add-button">
									<f:setPropertyActionListener target="#{phoneNoBean.add.user}" value="#{userBean.user}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="userBeanUserBanksForModifiedBy" value="Banks For Modified By:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{userBean.user.banksForModifiedBy}"/>
					<h:dataTable id="userBeanUserBanksForModifiedBy" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Name"/>
							</f:facet>
							<h:link outcome="/bank/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemName" value="#{_item.name}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="bankBeanAddName" maxLength="65535" value="#{bankBean.add.name}"/>
								<h:message for="bankBeanAddName" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Account Number"/>
							</f:facet>
							<h:link outcome="/bank/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemAccountNumber" value="#{_item.accountNumber}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="bankBeanAddAccountNumber" value="#{bankBean.add.accountNumber}"/>
								<h:message for="bankBeanAddAccountNumber" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Branch"/>
							</f:facet>
							<h:link outcome="/bank/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemBranch" value="#{_item.branch}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="bankBeanAddBranch" maxLength="65535" value="#{bankBean.add.branch}"/>
								<h:message for="bankBeanAddBranch" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Beneficiary Name"/>
							</f:facet>
							<h:link outcome="/bank/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemBeneficiaryName" value="#{_item.beneficiaryName}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="bankBeanAddBeneficiaryName" maxLength="65535" value="#{bankBean.add.beneficiaryName}"/>
								<h:message for="bankBeanAddBeneficiaryName" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Table Id"/>
							</f:facet>
							<h:link outcome="/bank/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemTableId" value="#{_item.tableId}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="bankBeanAddTableId" value="#{bankBean.add.tableId}"/>
								<h:message for="bankBeanAddTableId" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(bankBean.added)}" id="userBeanUserBanksForModifiedByAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{bankBean.add.userByModifiedBy}" value="#{userBean.user}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="userBeanUserBanksForCreatedBy1" value="Banks For Created By_1:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{userBean.user.banksForCreatedBy_1}"/>
					<h:dataTable id="userBeanUserBanksForCreatedBy1" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Name"/>
							</f:facet>
							<h:link outcome="/bank/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemName" value="#{_item.name}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="bankBeanAddName" maxLength="65535" value="#{bankBean.add.name}"/>
								<h:message for="bankBeanAddName" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Account Number"/>
							</f:facet>
							<h:link outcome="/bank/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemAccountNumber" value="#{_item.accountNumber}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="bankBeanAddAccountNumber" value="#{bankBean.add.accountNumber}"/>
								<h:message for="bankBeanAddAccountNumber" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Branch"/>
							</f:facet>
							<h:link outcome="/bank/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemBranch" value="#{_item.branch}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="bankBeanAddBranch" maxLength="65535" value="#{bankBean.add.branch}"/>
								<h:message for="bankBeanAddBranch" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Beneficiary Name"/>
							</f:facet>
							<h:link outcome="/bank/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemBeneficiaryName" value="#{_item.beneficiaryName}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="bankBeanAddBeneficiaryName" maxLength="65535" value="#{bankBean.add.beneficiaryName}"/>
								<h:message for="bankBeanAddBeneficiaryName" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Table Id"/>
							</f:facet>
							<h:link outcome="/bank/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemTableId" value="#{_item.tableId}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="bankBeanAddTableId" value="#{bankBean.add.tableId}"/>
								<h:message for="bankBeanAddTableId" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(bankBean.added)}" id="userBeanUserBanksForCreatedBy1Add" styleClass="add-button">
									<f:setPropertyActionListener target="#{bankBean.add.userByCreatedBy}" value="#{userBean.user}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="userBeanUserBanksForModifiedBy1" value="Banks For Modified By_1:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{userBean.user.banksForModifiedBy_1}"/>
					<h:dataTable id="userBeanUserBanksForModifiedBy1" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Name"/>
							</f:facet>
							<h:link outcome="/bank/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemName" value="#{_item.name}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="bankBeanAddName" maxLength="65535" value="#{bankBean.add.name}"/>
								<h:message for="bankBeanAddName" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Account Number"/>
							</f:facet>
							<h:link outcome="/bank/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemAccountNumber" value="#{_item.accountNumber}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="bankBeanAddAccountNumber" value="#{bankBean.add.accountNumber}"/>
								<h:message for="bankBeanAddAccountNumber" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Branch"/>
							</f:facet>
							<h:link outcome="/bank/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemBranch" value="#{_item.branch}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="bankBeanAddBranch" maxLength="65535" value="#{bankBean.add.branch}"/>
								<h:message for="bankBeanAddBranch" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Beneficiary Name"/>
							</f:facet>
							<h:link outcome="/bank/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemBeneficiaryName" value="#{_item.beneficiaryName}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="bankBeanAddBeneficiaryName" maxLength="65535" value="#{bankBean.add.beneficiaryName}"/>
								<h:message for="bankBeanAddBeneficiaryName" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Table Id"/>
							</f:facet>
							<h:link outcome="/bank/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemTableId" value="#{_item.tableId}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="bankBeanAddTableId" value="#{bankBean.add.tableId}"/>
								<h:message for="bankBeanAddTableId" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(bankBean.added)}" id="userBeanUserBanksForModifiedBy1Add" styleClass="add-button">
									<f:setPropertyActionListener target="#{bankBean.add.userByModifiedBy}" value="#{userBean.user}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="userBeanUserStocksForCreatedBy1" value="Stocks For Created By_1:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{userBean.user.stocksForCreatedBy_1}"/>
					<h:dataTable id="userBeanUserStocksForCreatedBy1" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Table Id"/>
							</f:facet>
							<h:link outcome="/stock/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemTableId" value="#{_item.tableId}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="stockBeanAddTableId" value="#{stockBean.add.tableId}"/>
								<h:message for="stockBeanAddTableId" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(stockBean.added)}" id="userBeanUserStocksForCreatedBy1Add" styleClass="add-button">
									<f:setPropertyActionListener target="#{stockBean.add.userByCreatedBy}" value="#{userBean.user}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="userBeanUserIsDisabled" value="Is Disabled:"/>
				<h:panelGroup>
					<h:selectBooleanCheckbox id="userBeanUserIsDisabled" value="#{userBean.user.isDisabled}"/>
					<h:message for="userBeanUserIsDisabled" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="userBeanUserInSales" value="In Sales:"/>
				<h:panelGroup>
					<h:selectBooleanCheckbox id="userBeanUserInSales" value="#{userBean.user.inSales}"/>
					<h:message for="userBeanUserInSales" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
			</h:panelGrid>

			<div class="buttons">
				<h:commandLink value="Save" action="#{userBean.update}" styleClass="btn btn-primary"/>
				<c:choose>
					<c:when test="#{!empty userBean.id}">
						<h:link value="Cancel" outcome="view" styleClass="btn btn-primary">
							<f:param name="id" value="#{userBean.id}"/>
						</h:link>
						<h:commandLink value="Delete" action="#{userBean.delete}" styleClass="btn btn-primary"/>
					</c:when>
					<c:otherwise>
						<h:link value="Cancel" outcome="search" styleClass="btn btn-primary"/>
					</c:otherwise>
				</c:choose>
			</div>
		</h:form>
	</ui:define>

</ui:composition>